package com.zhenwei.zscm.model.vo.shipping;

import com.zhenwei.zscm.common.annotations.Insert;
import com.zhenwei.zscm.common.annotations.Update;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class ShippingMaterialVO {
    @NotEmpty(message = "物料不能为空", groups = { Insert.class, Update.class })
    private String materialCode;
    @NotEmpty(message = "物料不能为空", groups = { Insert.class, Update.class })
    private String material;
    @NotNull(message = "数量不能为空", groups = { Insert.class, Update.class })
    @Min(value = 0,message = "数量不能小于0")
    private Integer count;
    //@NotEmpty(message = "SN不能为空", groups = { Insert.class, Update.class })
    private String sn;
}
